package com.yunban.project.api.text_check.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lijiajun
 * @date: 2025-02-18
 * @version: 1.0
 */
@Data
@Schema(description = "纠错反馈请求")
public class PostFeedbackReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "任务ID")
    @NotBlank(message = "任务ID{taskId}不能为空")
    private String taskId;
    @Schema(description = "错误文本")
    @NotBlank(message = "错误文本{errorText}不能为空")
    private String errorText;
    @Schema(description = "正确文本")
    @NotBlank(message = "正确文本{correctText}不能为空")
    private String correctText;
    @Schema(description = "是否有用")
    @NotNull(message = "是否有用{useful}不能为空")
    private Boolean useful;
    @Schema(description = "反馈意见")
    private String feedback;
}
